﻿var data= [{ "id": "XS201508001","ywtype":"","jhrq":"2012-12-12", "htrq": "2012-12-12", "cbk": "白沙湾商储库", "rwjd": "","statu":"待审批" },
{ "id": "XS201508001", "ywtype": "", "jhrq": "2012-12-12", "htrq": "2012-12-12", "cbk": "白沙湾商储库", "rwjd": "", "statu": "待审批" }];

$(function () {
    $("#tt").datagrid({
        fitColumns: true,
        data: data,
        columns: [[
            {
                field: 'id', title: '出库通知单编号', width: 120, align: 'center',
                formatter: function (value, row, index) {
                    return '' +
                        '<span><a href="../托管企业出库业务/托管企业出库业务新增.html?quanxian=' + (index + 1) + '">' + row.id + '</a></span>';
                }
            },
            { field: 'ywtype', title: '业务类型', width: 120, align: 'center' },
            { field: 'jhrq', title: '计划日期', width: 120, align: 'center' },
            { field: 'wcrq', title: '完成日期', width: 120, align: 'center'},
            { field: 'cbk', title: '储备库', width: 120, align: 'center'},
            { field: 'rwjd', title: '任务节点', width: 120, align: 'center' },
            { field: 'statu', title: '工作状态', width: 120, align: 'center' }
        ]]
    });
});